home *** CD-ROM | disk | FTP | other *** search
/ IBM InfoROM for OS/2 Beta 1995 January / IBM InfoROM for OS2 Beta 1-1995.ISO / testcert / storage / function / scsi / add / rdefect.scr < prev    next >
Encoding:
Text File  |  1994-08-10  |  995 b   |  43 lines

  1. * Reads the medium defect data into the ScatGat list.
  2.  
  3. @THREAD RDEFECT.LOG
  4. @NEWALIAS SADD SCSIADD.GRA
  5. @IMPORT SCSICOM.SCR
  6. SADD DD_OPEN
  7.  
  8. * 0=Async mode, 1=Sync mode
  9. SADD SET MODE=1
  10.  
  11. * Command completion timeout (Secs)
  12. * 0=the assigned value is the default set by the driver,
  13. * -1=the assigned value is infinite.
  14. SADD SET TIMEOUT=0 
  15.  
  16.  
  17. * Defect list format:
  18. *   0 : for Block format (000) not recommended
  19. *   4 : bytes from index format (100)
  20. *   5 : physical sector format (101)
  21. *   6 : vendor specific format (110)
  22. SADD SET DEFECT_LIST_FORMAT = 4
  23.  
  24. *  0 : do not return the grown defect list
  25. *  1 : return the grown defect list
  26. SADD SET GROWN_DEFECT_LIST = 0
  27.  
  28. *  0 : do not return the primary list of defects
  29. *  1 : return the primary list of defects
  30. SADD SET PRIMARY_DEFECT_LIST = 1
  31.  
  32.  
  33. * length in bytes of the defect descriptors
  34. SADD SET NUM_BYTES = 127
  35.  
  36. * Name for paramblock
  37. SADD SET LABEL = "READ DEFECT DATA"
  38.  
  39. SADD READ_DEFECT_DATA
  40.  
  41. SADD DD_CLOSE
  42.  
  43.